let setImg = (tag) => {
	if (tag == 'IOS') {
		$('#buttonIOS').addClass('activeBtn')
		$('#activeIconIos').removeClass('hide')

		$('#activeIconAndroid').addClass('hide')
		$('#buttonAndroid').removeClass('activeBtn')
	} else {
		$('#activeIconAndroid').removeClass('hide')
		$('#buttonAndroid').addClass('activeBtn')

		$('#buttonIOS').removeClass('activeBtn')
		$('#activeIconIos').addClass('hide')
	}
	$('#TwoDimensionalCode').attr('src', tag == 'IOS' ? 'img/TwoDimensionalCode.png' : 'img/TwoDimensionalCode.png')
}

function isWeixin() {
	var ua = window.navigator.userAgent;
	if ((ua.match(
			/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
		))) {
		// window.location.href = "/pages/webMobile/webMobile"
		window.location.href = "/pages/webMobile/webMobile"
	} else {
		// window.location.href="index.html"
		// iphbottom_text
	}
}

function openLayer() {
	$('#maskModel').show()
}

function closeLayer() {
$('#maskModel').hide()
}
isWeixin()